#include "demomainwidget.h"
#include "ui_demomainwidget.h"

DemoMainWidget::DemoMainWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::DemoMainWidget)
{
    ui->setupUi(this);
    _d = new DraggerWidget(ui->widgetDragParent); // new
    connect(_d, &DraggerWidget::sthDragged, this, [&](const DraggerWidget::DragObjects_t& d){
        qDebug() << d;
    });
}

DemoMainWidget::~DemoMainWidget()
{
    delete ui;
}
